package com.example.dml.decorator_pattern.high;

/**
 * @Authors：gaoyang
 * @CreateTime：2021-11-01
 * @Description：香肠装饰类
 */
public class SausageDecorator extends BatterCakeDecorator{

    public SausageDecorator(BatterCake batterCake) {
        super(batterCake);
    }

    @Override
    protected void doSomething() {

    }

    @Override
    protected int getPrice() {
        return super.getPrice()+2;
    }

    @Override
    protected String getMsg() {
        return super.getMsg()+"+1根香肠";
    }
}
